package com.itheima.test;

import java.util.Random;

public class staticDemo {
    static int[] arr=new int[100];
    static {
        Random random=new Random();
        for (int i = 0; i < arr.length; i++) {
            arr[i]=random.nextInt(100)+1;
        }
    }
    public staticDemo(){}

    public static void main(String[] args) {
//        System.out.println(staticDemo.arr[0]);
//        staticDemo demo=new staticDemo();
//        System.out.println(staticDemo.arr[0]);
        System.out.println(staticDemo.arr[0]);
    }
}
